﻿using UnityEngine;
using System.Collections;

public static class PanelExport
{
    public static int LoadPanel(string panelPath)
    {
        var panelPrefab = ResourceManager.Instance.LoadPrefab(panelPath);
        if (panelPrefab != null)
        {
            UICanvasMgr.Instance.AddPanel(panelPrefab);
            return WindowMgr.Instance.Add(panelPrefab);
        }
        return -1;
    }
}
